{% extends 'myhome/public/base.html' %}

{% block title %}
    <title>我的信息</title>
{% endblock %}

{% block css %}
    <link rel="stylesheet" type="text/css" href="/static/myhome/css/order.css">
    <link rel="stylesheet" type="text/css" href="/static/myhome/css/order-app.css">

{% endblock %}


{% block con %}
<div class="mainbody order">
    <div class="container">
        <!-- 面包屑导航 -->
        <div class="crumbs col-xs-12 col-sm-12">
            <ol class="breadcrumb">
                <li class="hidden-xs hidden-sm"><a href="index.html">首页</a></li>
                <li class="hidden-xs hidden-sm"><a href="member.html">我的商城</a></li>
                <li class="active"><a href="{% url 'myhome_myselfset' %}" style="color:red">我的信息</a></li>
            </ol>
        </div><!-- 面包屑导航 E-->
        
        <div class="main clearfix">
            <!-- 左侧导航 -->
            <div class="left-nav f-fl col-md-4 hidden-xs hidden-sm">
                <div class="nav-main">
                    <a href="javascript:;" class="type-title"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>订单中心</a>
                    <a href="{% url 'myhome_myorder' %}" class="ml ">我的订单</a>
                    <a href="#" class="ml ">我的回购单</a>
                    <a href="#" class="ml ">我的意外保</a>
                    <a href="javascript:;" class="type-title"><span class="glyphicon glyphicon-user" aria-hidden="true"></span>个人中心</a>
                    <a href="{% url 'myhome_myselfset' %}" class="ml active ">我的信息</a>
                    <a href="{% url 'myhome_myaddress' %}" class="ml ">地址管理</a>
                    <a href="#" class="ml ">我的收藏</a>
                    <a href="#" class="ml ">消息提醒</a>
                    <a href="#" class="ml ">建议反馈</a>
                </div>
            </div><!-- 左侧导航 E-->
            <!-- 右侧内容展示 -->
            <div class="right-content f-fr col-md-8 col-xs-12 col-sm-12">
                <br>
                <form class="am-form tpl-form-line-form" action="{% url 'myhome_myupdate' %}" method="post" enctype="multipart/form-data">
                    {% csrf_token %}
                    <input type="hidden" name="id" value="{{ ob.id }}">
                    <div class="form-group">
                            <label >用户名</label>
                            <input type="text" class="form-control" name="username" value="{{ ob.username }}" required minlength="3" maxlength="30" placeholder="请输入用户名：">
                            
                    </div>
                    <div class="form-group">
                            <label >密码</label>
                            <input type="password" class="form-control" name="password" value="*********" readonly title="密码禁止修改" required minlength="6" maxlength="30" placeholder="请输入密码：">
                    </div>
                    <div class="form-group">
                            <label >手机号</label>
                            <input type="text" class="form-control" name="phone" value="{{ ob.phone }}" disabled>
                    </div> 
                    <div class="form-group">
                            <label >邮箱</label>
                            <input type="email" class="form-control" name="email" value="{{ ob.email }}" placeholder="请输入邮箱：">
                      </div>

                    <div class="form-group">
                        <label>年龄 </label>
                            <input type="number" class="form-control" name="age" value="{{ ob.age }}" placeholder="请输入年龄："　>
                    </div>

                    <div class="form-group">
                        <label >性别</label>
                        <label ><input type="radio" name="sex" {% if ob.sex == 1 %} checked {% endif %}  value="1" > 男</label>
                        <label><input type="radio" name="sex" {% if ob.sex == 0 %} checked {% endif %} value="0" > 女</label>
                    </div>
          

                    <div class="form-group">
                        <label >上传头像</label>
                            <ul id="warp">
                                <li>
                                    <img id="imgShow_WU_FILE_0" width="100" height="100" src="{{ ob.pic }}"/>
                                    <input type="file" id="up_img_WU_FILE_0" name="pic" />
                                </li>
                            </ul>
                    </div>
                    <br>
                    <br><br>
                      <button class="btn btn-default">保存</button>
                </form>
             
            </div>
        </div>
    </div>  
</div>

{% endblock %}

{% block js %}
<script type="text/javascript" src="/static/myadmin/js/uploadPreview.js"></script>    
{% endblock %}

